package com.avecsys.quotemanager.mbeans.core;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author Sam Sundar K
 * 
 */
public class MessageBoardMBean extends BaseMBean implements Serializable {

	private List<String> infoList = new ArrayList<String>();

	private List<String> errorList = new ArrayList<String>();

	private List<String> warnList = new ArrayList<String>();

	public MessageBoardMBean() {
		super();
	}

	/**
	 * @return the infoList
	 */
	public List<String> getInfoList() {
		return infoList;
	}

	/**
	 * @param infoList
	 *            the infoList to set
	 */
	public void setInfoList(List<String> infoList) {
		this.infoList = infoList;
	}

	/**
	 * @return the errorList
	 */
	public List<String> getErrorList() {
		return errorList;
	}

	/**
	 * @param errorList
	 *            the errorList to set
	 */
	public void setErrorList(List<String> errorList) {
		this.errorList = errorList;
	}

	/**
	 * @return the warnList
	 */
	public List<String> getWarnList() {
		return warnList;
	}

	/**
	 * @param warnList
	 *            the warnList to set
	 */
	public void setWarnList(List<String> warnList) {
		this.warnList = warnList;
	}

	/**
	 * Clears all the messages
	 */
	public void reset() {
		this.getInfoList().clear();
		this.getErrorList().clear();
		this.getWarnList().clear();
	}
}
